#define _CRT_SECURE_NO_WARNINGS  1
#pragma warning(disable:6031)
#include <stdio.h>
#include <stdlib.h>
int main()
{
	int a = 0, i, j, count = 0;
	scanf("%d", &a);
	int* p, * q;
	p = (int*)calloc(a, 4*sizeof(int));
	q = p;
	for (i = 0; i < a; i++)
	{
		for (j = 0; j < 4; j++)
		{
			scanf("%d", p);
			p++;
		}
	}
	for (i = 0; i < a; i++)
	{
		for (j = 0; j < 4; j++)
		{
			printf("%d ",*q);
			q++;
		}
	}
	return 0;
}